namespace Digitalmes.Domain.Entities.Mes.Andons;

/// <summary>
/// 问题类型
/// </summary>
[SugarTable("andon_issue_type")]
public sealed class AndonIssueType : AuditedEntity
{
    /// <summary>
    /// 问题代码
    /// </summary>
    [NotNull]
    public string? IssueCode { get; set; }

    /// <summary>
    /// 问题名称（如 设备故障、质量缺陷、物料短缺 等）
    /// </summary>
    [NotNull]
    public string? IssueName { get; set; }

    /// <summary>
    /// 优先级（低/中/高）
    /// </summary>
    public PriorityEnum Priority { get; set; }

    /// 通知方式（屏显/应用/邮件/短信）
    /// </summary>
    [SugarColumn(SqlParameterDbType = typeof(EnumToStringConvert))]
    public AndonNotificationMethodEnum Method { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}
